package com.lb.jwitter.action;


import com.lb.jwitter.Tbl_TaiKhoan;
import com.opensymphony.xwork2.Action;



public class HomeAction {

	
	private Tbl_TaiKhoan taiKhoanDangNhap; 
	
	public Tbl_TaiKhoan getTaiKhoanDangNhap() {
		return taiKhoanDangNhap;
	}

	public void setTaiKhoanDangNhap(Tbl_TaiKhoan taiKhoanDangNhap) {
		this.taiKhoanDangNhap = taiKhoanDangNhap;
	} 
	public String execute() throws Exception
	{
		/*Map session = ActionContext.getContext().getSession();
		if(session.get("taiKhoan")==null){
			return "noprivilege";
		}
		/*HashMap taikhoan=(HashMap) session.get("taiKhoan");
		System.out.println(taikhoan.get("username"));
		*/
//	     taiKhoanDangNhap =  (Tbl_TaiKhoan) session.get("taiKhoan");
//	     
//	     if( taiKhoanDangNhap == null) return "noprivilege";
//	     
//        tblQuyenMenus = _Tbl_Quyen_MenuDAO.findByNhomQuyen(taiKhoanDangNhap.getMaNhomQuyen().getId(), 0, 0);
//		
//	    tblMenuChas = new ArrayList<Tbl_Menu>();
//	    
//	    for(Tbl_Quyen_Menu tbl : tblQuyenMenus){
//	    	if(tbl.getMenuId().getMenuCha() == null)
//	    		tblMenuChas.add(tbl.getMenuId());	
//	    }

		return Action.SUCCESS;

	}

	
	
}
